﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DataAccess;
namespace SQT.tracnghiem.Ajax.ASP.Notification
{
    public partial class notification_add : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            string title = Request.Form["title"];
            string content = Request.Form["content"];
            string receiver = Request.Form["accept"];

            new TblNotificationController().Insert(int.Parse(Session["admin_id"].ToString()), title, content, receiver, "", DateTime.Now, false);
        }
    }
}